package com.antu.first.service;

import com.antu.first.bean.Merchant;
import com.antu.first.dto.MerchantOperationExecution;

/**
 * Created by Administrator on 2018/3/7.
 */
public interface MerchantService {

    /**
     * 添加商户账号
     * @param currentMerchant
     * @param merchant
     * @return
     */
    MerchantOperationExecution addMerchant(Merchant currentMerchant, Merchant merchant);

    /**
     * 修改商户账号信息
     * @param merchant
     * @return
     */
    MerchantOperationExecution modifyMerchant(Merchant merchant);

    /**
     * 删除商户下的子账号
     * @param currentMerchant
     * @param mId
     * @return
     */
    MerchantOperationExecution deleteMerchant(Merchant currentMerchant, int mId);

    /**
     * 获取该酒店下所有子管理员的信息
     * @param hId
     * @return
     */
    MerchantOperationExecution queryAlls(int hId);

    /**
     *获取对应的管理员的详细信息
     * @param mId
     * @return
     */
    Merchant queryMerchantById(int mId);

}
